package com.sky.common.endpoint.sort;

import com.sky.business.sys.domain.CameraConfig;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.jetbrains.annotations.NotNull;


@Data
@AllArgsConstructor
public class CameraDistance  implements Comparable<CameraDistance> {
    private CameraConfig cameraConfig;
    private Double distance;

    @Override
    public int compareTo(@NotNull CameraDistance other) {
        return distance.compareTo(other.getDistance());
    }
}
